import service from './request'

/**
 * 登录
 */
export const loginUser = data => {
    return service({
        url: '/login',
        method: 'post',
        data
    })
};

/**
 * 注销
 * @param data
 * @returns {*}
 */
export const logout = data => {
    return service({
        url: '/logout',
        method: 'get',
        data
    })
};